import Vue from 'vue'
import Router from 'vue-router'
//pages
import NotFound from '@/pages/error/404'

import Home from '@/pages/home/Home'
import Login from '@/pages/account/Login'
import Register from '@/pages/account/Register'
import Change from '@/pages/account/Change'
import UserCenter from '@/pages/usercenter/UserCenter'


Vue.use(Router)

export default new Router({
  mode: 'history',
  routes: [
    {
      path: '/',
      name: 'Home',
      component: Home
    },{
      path: '/login',
      name: 'Login',
      component: Login
    },{
      path: '/register',
      name: 'Register',
      component: Register
    },{
      path: '/change',
      name: 'Change',
      component: Change
    },{
      path: '/usercenter',
      name:'UserCenter',
      component: UserCenter
    },{
      path: '*',
      component: NotFound
    }
  ]
})
